package com.ls.example.TestConstructorDI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestConstructorDi {

    public static void main(String args[]){
        test01();
    }


    public static void test01(){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        Person person=ctx.getBean("person",Person.class);
        System.out.println(person);
    }
}
